import LazyRoute from '@/components/LazyRoute';
import Root from '@/root';

const routes = [
  {
    component: Root,
    routes: [
      {
        path: '/login',
        exact: true,
        component: LazyRoute(() => import('@/views/User/Login'))
      },
      {
        path: '/about',
        exact: true,
        auth: true,
        component: LazyRoute(() => import('@/views/About'))
      },
      {
        path: '/404',
        exact: true,
        component: LazyRoute(() => import('@/views/Exception/404'))
      },
      {
        path: '*',
        exact: true,
        component: LazyRoute(() => import('@/views/Exception/404'))
      }
    ]
  }
];

export default routes;
